package com.yanqu.road.server.cmd.activity.qixi.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.QixiProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.qixi.QixiModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_QIXI_RECEIVE_BROADCAST_REWARD_CROSS_BACK, desc = "七夕领取广播奖励跨服返回")
public class QixiGetBroadcastRewardCrossBackCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {

        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        QixiProto.CrossGetBroadcastRewardRespMsg resultMsg = QixiProto.CrossGetBroadcastRewardRespMsg.parseFrom(packet.getBytes());
        player.getModule(QixiModule.class).getBroadcastRewardCrossBack(resultMsg);

    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
